home *** CD-ROM | disk | FTP | other *** search
- Path: news.io.com!usenet
- From: langj@jcave.com (Jonathan Lang)
- Newsgroups: comp.lang.c++
- Subject: proposals for new C++ standard: templates
- Date: Sun, 03 Mar 1996 20:55:46 GMT
- Organization: Illuminati Online
- Message-ID: <4hct8s$gmg@anarchy.io.com>
- NNTP-Posting-Host: p152.jcave.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- How would one make a proposal for the new C++ standard?
-
- For anyone interested, my proposal is as follows:
- 1. Allow explicit instantiation of template functions
- 2. Add the ability to specify default classes in a template
- declaration
- 3. a template function that uses template class parameters in the
- function parameter list has implicit "default" classes for those
- template parameters.
- 4. add template typedefs
- 5. add template objects (to allow one to initialize a static
- member of a template class)
- 6. add "template inheritance"; this is *not* the same as normal
- inheritance, except for a similarity in syntax and use: with template
- "inheritance", one can define a template "class parameter" as being
- "derived" from a given class; specifically, every member function of
- the "master" class must be defined for the "class parameter" in order
- for the template to compile.
-
- These proposals would allow existing template libraries to behave the
- same way they always have, and would further allow more flexibility
- and control of templates in newer libraries. The inspiration for
- these proposals was the STL and all of the workarounds that have to be
- used in order for it to work.
-
- Comments, anyone?
-
- -- Jonathan Lang (langj@jcave.com)
-
-